// 登陆和注册界面的切换
// 获得两个界面
let signBox = document.getElementsByClassName("signIpt")[0];
let regBox = document.getElementsByClassName("registerIpt")[0];


//获取两个切换按钮
let tabSign = document.getElementsByClassName("tabSign")[0];
let tabReg = document.getElementsByClassName("tabRegister")[0];


tabSign.onclick = function(){
    signBox.style.display = "block";
    regBox.style.display = "none";

    tabSign.style.color = "#0f9cf5";
    tabSign.style.borderColor = "#0f9cf5";
    tabSign.style.fontWeight = "bold";

    tabReg.style.color = "#737373";
    tabReg.style.borderColor = "#737373";
    tabReg.style.fontWeight = "100";
}

tabReg.onclick = function(){
    regBox.style.display = "block";
    signBox.style.display = "none";

    tabReg.style.borderColor = "#0f9cf5";
    tabReg.style.color = "#0f9cf5";
    tabReg.style.fontWeight = "bold";

    tabSign.style.color = "#737373";
    tabSign.style.borderColor = "#737373";
    tabSign.style.fontWeight = "100";
}